import pytest,time,allure,os
from Tools.Tools import log,emall
time = time.strftime('%Y%m%d_%H%M%S')
if __name__ == '__main__':
    log(time)
    pytest.main(['./TestCase/Testcase.py','-s',f'--alluredir={time}allure-results'])
    os.system(f'allure generate allure-results -o {time}allure-repote')
    emall([f'{time}.log',f'{time}allure-repote/index.html'])
